package com.chenshu.mybatis_demo.service;

import com.chenshu.mybatis_demo.mapper.UserMapper;
import com.chenshu.mybatis_demo.model.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created with IntelliJ IDEA
 * Description
 * User：chenshu
 * Date：2024-04-16
 * Time：02:35
 */
@Service
public class UserService {
    @Autowired
    private UserMapper userMapper;

    public List<UserInfo> getAll() {
        return userMapper.getAll();
    }
}
